Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC: Fix no audio and video issue for Firefox. #3079

Merged
merged 6 commits into from
Nov 21, 2022

Conversation

johzzy
Copy link
Contributor

@johzzy johzzy commented Jun 23, 2022

#3041

After the RTC starts streaming, the video payload type corresponding to the RTC source will change due to the SDP negotiation result.

If rtmp to rtc or srt to rtc occurs afterwards, the bridge constructs the video payload type of the rtp packet as the default value 102. This mismatch with the previous situation causes the webrtc receiver to not correctly obtain the video track.

Solution: Set the value of the video payload type for constructing the rtp packet in the bridge to match the video payload type of the rtc source.


TRANS_BY_GPT3

@winlinvip winlinvip force-pushed the develop branch 2 times, most recently from 14b8d86 to 4126c42 Compare August 14, 2022 23:57
@winlinvip winlinvip force-pushed the develop branch 11 times, most recently from 9c7a9d0 to 38c3d9f Compare September 2, 2022 14:22
@winlinvip winlinvip changed the title fix(rtmp2rtc): fix video payload type for rtmp to rtc bridge (ossrs#3041) WebRTC: Parse video PT from RTC publisher for RTMP2RTC. Nov 21, 2022
@winlinvip winlinvip changed the title WebRTC: Parse video PT from RTC publisher for RTMP2RTC. WebRTC: Fix no audio and video issue for Firefox. Nov 21, 2022
@winlinvip winlinvip merged commit 6eb10af into ossrs:develop Nov 21, 2022
winlinvip added a commit that referenced this pull request Nov 22, 2022
* Remove extern SrsPps* duplicate declarations

* fix(rtmp2rtc): fix video payload type for rtmp to rtc bridge (#3041)

* Revert changes not belongs to this PR.

* Fix naming issue, follow SRS style.

* Use srs_assert instead of assert.

* Fix firefox no audio issue.

Co-authored-by: winlin <[email protected]>
johzzy added a commit to johzzy/srs that referenced this pull request Jun 26, 2023
* Remove extern SrsPps* duplicate declarations

* fix(rtmp2rtc): fix video payload type for rtmp to rtc bridge (ossrs#3041)

* Revert changes not belongs to this PR.

* Fix naming issue, follow SRS style.

* Use srs_assert instead of assert.

* Fix firefox no audio issue.

Co-authored-by: winlin <[email protected]>
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
3 participants